import itertools

x=[0,1]
y=[2,3]
c=[0,3,4,5]

aux=itertools.product(x,y,c)

for element in aux:
    print element
    print element[0]
